#pragma once

#include "Color3f.h"
#include "FreeImage/FreeImage.h"

class Bitmap3f
{
private:
    int h, w;
    Color3f* data;

public:
    Bitmap3f();
    Bitmap3f(FIBITMAP* source);
    ~Bitmap3f();

    int height() const { return h; }
    int width() const { return w; }

    Color3f& at(int x, int y) const;
    void setData(FIBITMAP* source);
    void deleteData();
};
